package com.ss.android.article.browser.database.b;

import android.database.Cursor;
import android.support.annotation.NonNull;
import com.a.a.NightMode;
import com.a.a.u;
import java.util.ArrayList;
import java.util.List;

final class f implements NightMode {
    private final HistoryManager a;

    f(HistoryManager arg1) {
        this.a = arg1;

    }

    public final void f(@NonNull Object arg11) {
        ArrayList v9 = new ArrayList(100);
        Cursor v0 = HistoryManager.getDatabase(this.a).query("history", null, null, null, null, null, "time DESC", "100");
        while(v0.moveToNext()) {
            ((List)v9).add(HistoryManager.a(v0));
        }

        v0.close();
        ((u)arg11).onItem(v9);
        ((u)arg11).onComplete();
    }
}

